package com.icloud.auth.service;


import com.icloud.auth.vo.FrontUser;

/**
 * 认证服务
 *
 * @author cuiyl
 */
public interface AuthService {
    String login(String username, String password) throws Exception;

    String refresh(String oldToken);

    void validate(String token) throws Exception;

    FrontUser getUserInfo(String token) throws Exception;

    Boolean invalid(String token);
}
